package com.vcar.LDiceClient.command
{
	import mx.logging.Log;
	import mx.logging.LogEventLevel;
	import mx.logging.targets.TraceTarget;
	
	import org.puremvc.as3.interfaces.INotification;
	import org.puremvc.as3.patterns.command.SimpleCommand;
	
	/**
	 * 初始化系统日志 
	 * @author rhj
	 * 
	 */	
	public class InitLogCommand extends SimpleCommand
	{
		public function InitLogCommand()
		{
			super();
		}
		
		override public function execute(notification:INotification) : void
		{
			var logTarget:TraceTarget=new TraceTarget();
			
			logTarget.filters=["com.vcar.*"];
			logTarget.level=LogEventLevel.DEBUG;
			logTarget.includeDate=true;
			logTarget.includeTime=true;
			logTarget.includeCategory=true;
			logTarget.includeLevel=true; 
			
			Log.addTarget(logTarget);
		}
	}
}